package main

import (
	"fmt"
	"gitee.com/masaichi/mastool/masfile"
	"gitee.com/masaichi/mastool/utils"
	"log"
	"os"
	"strings"
)

func main() {
	path, err := utils.GetCurrentPath()
	fmt.Printf("current_path:%s err:%v\n", path, err)
	separator := string(os.PathSeparator)
	path = strings.TrimRight(path, separator)
	regList := []string{}
	ignoreList := []string{}
	fileService := masfile.NewTargetFiles(regList, ignoreList)
	//目前只获取二级子目录，没有使用遍历
	err = fileService.FindFile(path)
	log.Printf("images:%v\n", fileService.FilePaths)
	log.Printf("video:%v\n", fileService.VideoPaths)
}
